export interface ResponseData {
    code: number,
    ok: boolean,
    message: string
}
//定义SKU对象的类型
export interface Attr {
    id?: number
    valueName?: any
    attrId: number | string //平台属性的ID
    valueId: number | string //属性值的ID
}
//销售属性
export interface saleArr {
    id?: number
    saleAttrValueName?: any//销售属性值
    saleAttrId: number | string //属性ID
    saleAttrValueId: number | string //属性值的ID
}
export interface SkuData {
    category3Id?: string | number //三级分类的ID
    spuId?: string | number //已有的SPU的ID
    tmId?: string | number //SPU品牌的ID
    skuName?: string //sku名字
    price?: string | number //sku价格
    weight?: string | number //sku重量
    skuDesc?: string //sku的描述
    skuAttrValueList?: Attr[]//平台属性的数组
    skuSaleAttrValueList?: saleArr[]//销售属性的数组
    skuImageList?: any
    skuDefaultImg?: string //sku图片地址
    isSale?: number
    id?: number | string
}
// 获取SKU接口返回的数据类型
export interface SkuResponseData extends ResponseData {
    data: {
        records: SkuData[],
        total: number,
        size: number,
        current: number,
        orders: [],
        optimizeCountSql: boolean,
        hisCount: null | number,
        countId: string | number,
        maxLimit: null,
        searchCount: boolean,
        pages: number,
    }
}
//获取SKU商品详情接口的数据TS类型
export interface SkuInfoData extends ResponseData {
    data: SkuData;
}